<%@ page import="org.springframework.util.StringUtils" %>
<%@ page import="com.ytkj.tradeserver.entity.UserInfo" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%
  String showType = (String) request.getAttribute("showType");
  String showMessage = "迅极达科技,欢迎您";
  boolean isLogin = false;
  if(!"login".equals(showType)){
     Object object = request.getSession(true).getAttribute("userInfo");
     if( object!=null ){
		 UserInfo userInfo = (UserInfo)object;
		 showMessage += "：" + userInfo.getUname();
		 isLogin = true;
	 }
  }

%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<!--<![endif]-->

	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav pull-right">
				<li><a href="admin/index" class="hidden-phone visible-tablet visible-desktop"
					role="button"><%=showMessage%></a></li>
				<%if(isLogin) { %>
				<li><a href="admin/logout"
					   class="hidden-phone visible-tablet visible-desktop" role="button">注销退出</a></li>
				<%}%>
			</ul>
			<a class="brand" href="admin/index"><span class="first"></span> <span
				class="second"></span></a>
		</div>
	</div>

</body>
</html>
